var arr1 = [];
var arr2 = [1,2,3,4,5];
var array = arr1.push(...arr2);
console.log(array);
console.log(arr1);